<?$globalCnt = 0;?>
<div class="content">
	<?=$businessText['text1']?>
	<a href="<?=Request::$controller?>list/" style="font-size: 1.4em; font-weight: bold;">West Town Chamber of Commerce Member Businesses</a>
	<br /><br />
	<hr />
	<?foreach($categories as $category):?>
	<br clear="all" />
	<h3 style="color: #de4b32;"><b><?=Html::chars($category['name'])?></b></h3>
		<?if (isset($items[$category['id']]) ? count($items[$category['id']]) : false):?>
	<table>
		<tr>
			<td width="50%">
			<?$cnt = 0?>
			<?foreach ($items[$category['id']] as $item):?>
				<div  class="itemContent">
					<b><?=Html::chars($item['name'])?></b>
					<?if ($item['address'] != ''):?>
						<br /><?=Html::chars($item['address'])?>
					<?endif?>
					<?if ($item['phone'] != ''):?>
						<br /><?=Html::chars($item['phone'])?>
					<?endif?>
					<?if ($item['text1'] != ''):?>
						<br /><?=$item['text1']?>
					<?endif?>
					<?if ($item['url'] != ''):?>
						<br /><?=Html::anchor($item['url'])?>
					<?endif?>
				</div>
			<div class="clear"></div>
			<?$cnt++?>
			<?$globalCnt++;?>
			<? if(ceil(count($items[$category['id']]) / 2) == $cnt): ?>
			</td><td>
			<?endif?>
			<?endforeach?>
			</td>
		</tr>
	</table>
		<?else:?>
	<p>
		No items in this category yet.
	</p>
		<?endif?>
	<?endforeach?>
	<br clear="all" />
	<p style="color:#d09022; font-size:14px; float:right; padding-right:20px;">
		<a href="#top" id="bottomLink">Top</a>
	</p>
</div>